/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.TrainFlowHandleBO;
import com.xy.biz.ts.domain.query.TrainFlowHandleQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-6-28
 */
public interface TrainFlowHandleManager {
	
	/**
	 * 保存
	 *
	 * @param trainFlowHandleBO
	 */
	int saveTrainFlowHandle(TrainFlowHandleBO trainFlowHandleBO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllTrainFlowHandle(Collection<TrainFlowHandleBO> collection);
	
	/**
	 * 更新
	 *
	 * @param trainFlowHandleBO
	 */
	int updateTrainFlowHandle(TrainFlowHandleBO trainFlowHandleBO);
	
	/**
	 * 删除
	 *
	 * @param trainFlowHandleId
	 */
	int deleteTrainFlowHandle(Long trainFlowHandleId);
	
	/**
	 * 查找一个
	 *
	 * @param trainFlowHandleId
	 * @return 
	 */
	TrainFlowHandleBO getTrainFlowHandle(Long trainFlowHandleId);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainFlowHandleBO> listTrainFlowHandleById(Collection<Long> collection);
	
	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainFlowHandleBO> listTrainFlowHandle(TrainFlowHandleQuery query);
	
	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainFlowHandle(TrainFlowHandleQuery query);
	
}
